#include"Sort.hpp"
void Test()
{
    vector<int> v(10,0);
    for(int i = 0;i<v.size();i++) v[i] = rand() % 20,cout << v[i] << " ";
    cout << endl;

    //排序
    //QuickSortNonR(v,0,v.size()-1);
    QuickSort_2(v,0,v.size()-1);
    for(int i = 0;i<v.size();i++)
        cout << v[i] <<" ";
    cout << endl;
}
int main()
{
    srand((unsigned int)time(NULL));
    Test();
    return 0;
}